package com.andersen.database.entity;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Avseenko Dmitrij
 * Date: 27.02.14
 * Time: 12:08
 * To change this template use File | Settings | File Templates.
 */
public class ComponentTypeEntity {
    protected long id;
    protected String name;
    protected long parent_type_id;
    protected ComponentTypeEntity parentType = null;
    protected List<ComponentTypeEntity> childTypes = null;
            
    public long getId(){
        return id;
    }

    public String getName(){
        return name;
    }

    public long  getParentTypeId(){
        return  parent_type_id;
    }


    public void setId(long _id){
        id = _id;
    }

    public void setName(String _name){
        name = _name;
    }

    public void setParentTypeId(long _parent_type_id){
        parent_type_id = _parent_type_id;
    }

    public ComponentTypeEntity getParentType() {
        return parentType;
    }

    public void setParentType(ComponentTypeEntity parentType) {
        this.parentType = parentType;
    }

    public List<ComponentTypeEntity> getChildTypes() {
        return childTypes;
    }

    public void setChildTypes(List<ComponentTypeEntity> childTypes) {
        this.childTypes = childTypes;
    }
    
    @Override
    public String toString(){
        return "OfficeEntity{" + "id=" + id +
                ", name=" + name +
                ", parentTypeId=" + parent_type_id + 
                ", parentType=" + parentType + '}';
    }
}
